use cmos_rtc::{ReadRTC, Time};

use crate::println;

pub fn date() {
    let mut cmos = ReadRTC::new(0x00, 0x00);
    let time: Time = cmos.read();
    println!("{} {}-{}-{} {}:{}:{}", time.century, time.year, time.month, time.day, time.hour, time.minute, time.second);
}